<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        window.addEventListener('message',function (e) {
            localStorage.setItem('phone',e.data);
        })
    </script>
</head>
<body>

</body>
</html>